<?php

namespace app\index\controller;

use app\common\model\Project;
use app\common\model\User;
use think\Controller;
use think\Db;

class Index extends Controller
{
    public function index(){
        $proList=Db::name('project')->limit(4)->select();
        $bookList=Db::name('book')->limit(4)->select();
        $othvideoList=Db::name('othvideo')->limit(4)->select();
        $zzFile=Db::name('article')->where('art_type',1)->limit(4)->select();
        $examFile=Db::name('article')->where('art_type',2)->limit(4)->select();
        $this->assign('proList',$proList);
        $this->assign('bookList',$bookList);
        $this->assign('othvideoList',$othvideoList);
        $this->assign('zzFile',$zzFile);
        $this->assign('examFile',$examFile);
        return $this->fetch();
    }
}
